<template>
	<view class="container">
		<!-- 库位与状态 -->
		<view class="header">
			<view style="font-size: 26rpx;">哈西库-生鲜区A001</view>
			<view style="font-size: 24rpx;color: #FBA349;">(已占用)</view>
		</view>
		<!-- 信息 -->
		<view class="information">
			<view class="goods">
				<span>货品种类：</span>
				<span style="color: #858585;">5</span>
			</view>
			<scroll-view scroll-y="true" class="scroll-Y" @scrolltolower="lower">
				<view class="block" v-for="(item,index) in 5" :key="index">
					<view>货品{{index+1}}：<span style="color: #858585;">河北精品大白菜</span></view>
					<view class="blockTow">
						<view style="width: 43%;">存放数量：<span style="color: #858585;">3000kg</span></view>
						<view>有效日期：<span style="color: #858585;">2025-01-02</span></view>
					</view>
					<view class="blockTow">
						<view style="width: 43%;">批次编号：<span style="color: #858585;">20250102</span></view>
						<view style="display: flex;">
							<view>采购订单：</view>

							<view class="CG">CG-20250202-001</view>
						</view>
					</view>
				</view>
			</scroll-view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {
			// 触底加载数据
			lower() {
				console.log('加载数据');
			}
		}
	}
</script>

<style scoped>
	.CG {
		color: #177A77;
		width: 250rpx;
		text-overflow: ellipsis;
		overflow: hidden;
		word-break: break-all;
		white-space: nowrap;
	}

	.blockTow {
		display: flex;
		margin-top: 5rpx;
	}

	.block {
		margin-bottom: 40rpx;
		font-size: 26rpx;
	}

	.goods {
		margin-top: 54rpx;
		width: 674rpx;
		font-size: 26rpx;
	}

	.scroll-Y {
		margin-top: 50rpx;
		width: 674rpx;
		height: calc(100vh - 300rpx);
	}

	.information {
		margin-top: 19rpx;
		width: 750rpx;
		height: calc(100vh - 210rpx);
		background: #ffffff;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.header {
		width: 750rpx;
		background-color: #FFFFFF;
		height: 101rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 31rpx 0 36rpx;
		box-sizing: border-box;
		margin-top: 21rpx;
		font-weight: 500;
	}

	.container {
		width: 750rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		background-color: #F8F8F8;
	}

	page {
		background-color: #F8F8F8;
	}
</style>